﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="Register.aspx.cs" Inherits="Register" %>

<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
    <div class="post">
        <asp:Label ID="Label1" runat="server" Text="<%$Resources:Resource, register%>"></asp:Label>
        <div class="entry">
            <p>
                <table>
                    <tr>
                        <td>
                            <table>
                                <tr>
                                    <td align="right">
                                        <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName" Text="<%$Resources:Resource,usersign %>"></asp:Label>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="UserName" runat="server"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" Text="*" ControlToValidate="UserName"
                                            ErrorMessage="User Name is required."></asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password" Text="<%$Resources:Resource, passwordsign%>"></asp:Label>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="Password" runat="server" TextMode="Password"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="PasswordRq" runat="server" Text="*" ControlToValidate="Password"
                                            ErrorMessage="blabla" Style="color: #FF0000; font-size: x-small"></asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        <asp:Label ID="ConfirmPassLabel" runat="server" AssociatedControlID="ConfirmPass"
                                            Text="<%$Resources:Resource, confirmpasswordsign%>"></asp:Label>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="ConfirmPass" runat="server" TextMode="Password"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="ConfirmPasswordRequired" runat="server" 
                                            ControlToValidate="ConfirmPass" 
                                            ErrorMessage="Confirm Password is required.">*</asp:RequiredFieldValidator> 
                                            
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        <asp:Label ID="NameLabel" runat="server" AssociatedControlID="fullname" Text="<%$Resources:Resource,fullname %>"></asp:Label>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="FullName" runat="server"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="fullnamerequire" runat="server" Text="*" ControlToValidate="Fullname"
                                            ErrorMessage="Full Name is required."></asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        <asp:Label ID="EmailLabel" runat="server" AssociatedControlID="Email" Text="E-Mail:"></asp:Label>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="Email" runat="server"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="EmailRequired" runat="server" Text="*" ControlToValidate="Email"
                                            ErrorMessage="E-mail is required."></asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        <asp:Label ID="UserTypeLabel" runat="server" AssociatedControlID="UserType" Text="<%$Resources:Resource, usertype%>"></asp:Label>
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="UserType" runat="server" Width="138px">
                                            <asp:ListItem Value="5" Text="<%$Resources:Resource, personal%>" />
                                            <asp:ListItem Value="4" Text="<%$Resources:Resource, bussiness%>" />
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        <asp:Label ID="PhoneNumberLabel" runat="server" AssociatedControlID="PhoneNumber"
                                            Text="<%$Resources:Resource,phonenumber %>"></asp:Label>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="PhoneNumber" runat="server"></asp:TextBox>
                                    </td>
                                </tr>
                           
                                <tr>
                                    <td align="right">
                                        <asp:Label ID="Cardlabel" runat="server" AssociatedControlID="CardID" Text="<%$Resources:Resource,cardid %>"></asp:Label>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="CardID" runat="server"></asp:TextBox>
                                    </td>
                                </tr>
                                 <tr>
                                    <td align="center" colspan="2">
                                        <asp:CompareValidator ID="PasswordCompare" runat="server" 
                                            ControlToCompare="Password" ControlToValidate="ConfirmPass" 
                                            Display="Dynamic" 
                                            ErrorMessage="<%$Resources:Resource,errorPass %>">
                                            </asp:CompareValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" colspan="2">
                                        <asp:Label ID="ErrorMessage" runat="server" Style="color: #FF0000"></asp:Label>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td align="center">
                            <asp:Button ID="CreateButton" runat="server" OnClick="CreateButton_Click" 
                                Text="<%$Resources:Resource, btSignup%>" style="height: 26px" />
                        </td>
                    </tr>
                </table>
            </p>
        </div>
    </div>
</asp:Content>
